import request from '@/utils/request'

// 查询员工薪酬列表
export function listEmployesSalary(query) {
  return request({
    url: '/wms/employesSalary/list',
    method: 'get',
    params: query
  })
}

// 查询员工薪酬详细
export function getEmployesSalary(id) {
  return request({
    url: '/wms/employesSalary/' + id,
    method: 'get'
  })
}

// 新增员工薪酬
export function addEmployesSalary(data) {
  return request({
    url: '/wms/employesSalary',
    method: 'post',
    data: data
  })
}

// 修改员工薪酬
export function updateEmployesSalary(data) {
  return request({
    url: '/wms/employesSalary',
    method: 'put',
    data: data
  })
}

// 删除员工薪酬
export function delEmployesSalary(id) {
  return request({
    url: '/wms/employesSalary/' + id,
    method: 'delete'
  })
}
